package com.liuzh.kaoyanspringboot.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableLogic;
import java.io.Serializable;

import lombok.Data;
import lombok.Getter;
import lombok.Setter;


/**
 * <p>
 * 
 * </p>
 *
 * @author 刘志鸿
 * @since 2023-03-12
 */
@Getter
@Setter
  @TableName("t_like")
public class Like implements Serializable {

    private static final long serialVersionUID = 1L;

      /**
     * id
     */
        @TableId(value = "id", type = IdType.AUTO)
      private Integer id;

      /**
     * 用户id
     */
      private Integer userId;

      /**
     * 被点赞的事物的id
     */
      private Integer likeId;

      /**
     * 被点赞点赞的类型
     */
      private String type;

      /**
     * 是否喜欢
     */
      private Integer dislike;

//      @TableLogic
      private boolean isDelete;

  public boolean getIsDelete() {
    return isDelete;
  }
  public void setIsDelete(Boolean isDelete) {
    this.isDelete = isDelete;
  }
}
